<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>测试vue_v2_k3</title>
    <script type="text/javascript" src="https://cdn.jsdelivr.net/vue/2.1.3/vue.js"></script>
</head>
<body>
<div id="kzx1" >
    <p>{{msg}}</p>

</div>

</body>
<script>

    import {createApp} from 'Vue'

    const app = createApp({})

    console.info("app---: "+app)

    // 各个生命周期函数通过调用下面这个函数了解其所处的生命阶段
    function show(inf,obj){
        console.log(inf);
        console.log('获取vue实例data里的数据：'+obj.msg);
        console.log('挂载的对象，就是DOM：' +obj.$el);
        console.log('页面上已经挂载的DOM：'+document.getElementById('kzx1').innerHTML);
        console.log("**********************************************************************");

    }

</script>

</html>
